home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0010-Re Memory managemen-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-03  |  1.3 KB  |  38 lines  |  [TEXT/GEOL]

  1. Item    0670541                         3-Oct-89        11:58
  2.  
  3. From:   BIANCHI1                        Bianchi, Curt
  4.  
  5. To:     CH0068                          CH DEV Hamilton, Bonaduz
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Memory management
  10.  
  11. In response to your memory management question:  MacApp allocates a handle to
  12. reserve the space for the permanent reserve.  MemSpaceIsLow returns false as
  13. long as that handle is allocated.  When the handle is disposed, because the
  14. memory was needed to satisfy a permanent request, then MemSpaceIsLow returns
  15. true.  The result of FreeMem does not take into account the space reserved by
  16. the permanent reserve handle.  Hope that helps.
  17.  
  18. Curt Bianchi
  19. Apple Computer
  20.  
  21. --------------------------------------------------------
  22.  
  23. I have an application which reads large chunks of data (ca. 45k) from a file
  24. and displays them in tabular form.
  25.    I have set the low space reserve in my mem! resource to 50*1024 bytes,
  26.    but MemSpaceIsLow continues to return FALSE even if the debugger says there
  27. are
  28.    only 4k bytes of (permanent) Freemem left. Why ?
  29.  
  30. Here my mem! resource:
  31.  
  32. resource 'mem!'(256,purgeable){
  33.            0,            /* add to temp. reserve */
  34.            50*1024,    /* add to permanent reserve */
  35.            0              /* add to stack space */
  36. };
  37.  
  38.